package org.mozhu.mboot.core.web.security;

import org.springframework.security.config.annotation.web.builders.HttpSecurity;

public class HttpSecurityHolder {
    private HttpSecurityHolder() {
    }

    private static class HttpSecurityHolderHolder {
        private static final HttpSecurityHolder INSTANCE = new HttpSecurityHolder();

        private HttpSecurityHolderHolder() {
        }
    }

    public static final HttpSecurityHolder get() {
        return HttpSecurityHolder.HttpSecurityHolderHolder.INSTANCE;
    }

    private HttpSecurity httpSecurity;

    public void setHttpSecurity(HttpSecurity httpSecurity) {
        this.httpSecurity = httpSecurity;
    }

    public HttpSecurity getHttpSecurity() {
        return httpSecurity;
    }
}
